<html>
<head><meta charset="utf-8"><title>bootstrapping cfg · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html">bootstrapping cfg</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="176305057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176305057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176305057">(Sep 22 2019 at 10:39)</a>:</h4>
<p>When adding a new intrinsic to libcore, one used to be able to write <code>#[cfg(not(stage0))]</code> to avoid crashing the bootstrap compiler</p>



<a name="176305059"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176305059" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176305059">(Sep 22 2019 at 10:39)</a>:</h4>
<p>I've tried that and <code>#[cfg(not(bootstrap))]</code> and neither work</p>



<a name="176305060"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176305060" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176305060">(Sep 22 2019 at 10:39)</a>:</h4>
<p>did the cfg that gets passed change ?</p>



<a name="176308004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308004">(Sep 22 2019 at 12:12)</a>:</h4>
<p>the latter should work, I've used it successfully before</p>



<a name="176308011"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308011" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308011">(Sep 22 2019 at 12:12)</a>:</h4>
<p>maybe we're in <code>boostrap</code> mode again?</p>



<a name="176308017"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308017" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308017">(Sep 22 2019 at 12:13)</a>:</h4>
<p>something about SIMD in libcore</p>



<a name="176308487"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308487" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308487">(Sep 22 2019 at 12:27)</a>:</h4>
<p><span class="user-mention" data-user-id="132920">@gnzlbg</span> I think .. let me check, if Alex's PR hasn't landed yet you need boostrap_please_ignore_stdarch or os</p>



<a name="176308498"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308498" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308498">(Sep 22 2019 at 12:27)</a>:</h4>
<p>Yeah, <span class="user-mention" data-user-id="132920">@gnzlbg</span> use <code>cfg(boostrap_stdarch_ignore_this)</code></p>



<a name="176308500"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176308500" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176308500">(Sep 22 2019 at 12:27)</a>:</h4>
<p>(yes, typo from bootstrap is "intentional")</p>



<a name="176309046"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309046" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309046">(Sep 22 2019 at 12:42)</a>:</h4>
<p>that worked :D</p>



<a name="176309052"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309052" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309052">(Sep 22 2019 at 12:43)</a>:</h4>
<p>I found that below in the file</p>



<a name="176309054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309054">(Sep 22 2019 at 12:43)</a>:</h4>
<p>but i couldn't grep for it</p>



<a name="176309055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309055">(Sep 22 2019 at 12:43)</a>:</h4>
<p>because i was obviously greeping for <code>bootstrap</code> and not <code>boostrap</code></p>



<a name="176309098"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309098" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309098">(Sep 22 2019 at 12:44)</a>:</h4>
<p>what revelead it was the src/tool/.../bootstrap.rs file, where i could find both --cfgs being passed</p>



<a name="176309099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176309099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176309099">(Sep 22 2019 at 12:44)</a>:</h4>
<p>i was only briefly confused by the typo though</p>



<a name="176483813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/bootstrapping%20cfg/near/176483813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/bootstrapping.20cfg.html#176483813">(Sep 24 2019 at 16:59)</a>:</h4>
<p>semi-related <a href="https://twitter.com/boostrapghost" target="_blank" title="https://twitter.com/boostrapghost">https://twitter.com/boostrapghost</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>